# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def accessed_by?(args = {})
    request.env['HTTP_USER_AGENT'].downcase.index(args[:browser_version])
  end

  def no_accessed_by?(args = {})
    !accessed_by?(args)
  end
  
  def loggined?
    session[:current_user_id]
  end
end
